package com.example.yml0612;

import java.util.List;

public class Bean {
    /**
     * data : {"phones":[{"name":"小米4","price":2400,"brand":"小米"},{"name":"荣耀6","price":1500,"brand":"华为"},{"name":"三星s6","price":5000,"brand":"三星"}],"type":"手机","count":3}
     * info : success
     * status : 1
     */

    private DataBean data;
    private String info;
    private int status;

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public static class DataBean {
        /**
         * phones : [{"name":"小米4","price":2400,"brand":"小米"},{"name":"荣耀6","price":1500,"brand":"华为"},{"name":"三星s6","price":5000,"brand":"三星"}]
         * type : 手机
         * count : 3
         */

        private String type;
        private int count;
        private List<PhonesBean> phones;

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public int getCount() {
            return count;
        }

        public void setCount(int count) {
            this.count = count;
        }

        public List<PhonesBean> getPhones() {
            return phones;
        }

        public void setPhones(List<PhonesBean> phones) {
            this.phones = phones;
        }

        public static class PhonesBean {
            /**
             * name : 小米4
             * price : 2400
             * brand : 小米
             */

            private String name;
            private int price;
            private String brand;
            private int image;

            public int getImage() {
                return image;
            }

            public void setImage(int image) {
                this.image = image;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public int getPrice() {
                return price;
            }

            public void setPrice(int price) {
                this.price = price;
            }

            public String getBrand() {
                return brand;
            }

            public void setBrand(String brand) {
                this.brand = brand;
            }
        }
    }
}
